<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!-- Consider adding an manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
  <meta charset="utf-8">

  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title><?php echo $title_for_layout; ?></title>
  <meta name="viewport" content="width=device-width,initial-scale=1">
	<?php
    echo $this->Html->css('main', null, array("id"=>"previewCss", "media"=>"print"));
		echo $this->Html->css('admin', null, array("id"=>"mainCss"));
    echo $this->Html->css('tws-framework', null, array("id"=>"frameworkCss"));
    echo $this->Html->css('jquery-ui-1.8.15.custom');
    echo $this->Html->css('jquery.cluetip');    
		echo $this->Html->script('modernizr-2.5.3.min');
	?>  
</head>

<body>

  <div id="container">
    <header>
    <?php echo $this->element('admin_header'); ?>
    </header>


    <div id="mainNoSideNav" role="main">

    <?php 
      $breadcrumbs =  $this->Html->getCrumbs(' > ','Home');
      if(!empty($breadcrumbs)) {
        echo '<div id="breadcrumbs">';
        echo $breadcrumbs;
        echo '</div>';
      }
    ?>
      <?php echo $content_for_layout; ?>

    </div>

    <footer id="footer">
      <?php echo $this->element('admin_footer'); ?>
    </footer>
  </div> <!--! end of #container -->

  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  <script>window.jQuery || document.write('<?php echo str_replace("</script>", "<\/script>", $this->Html->script("jquery-1.7.1.min.js"));?>')</script>

 <?php 
 //plugins
 echo $this->Html->script(array('plugins/jquery.validate.min','plugins/additional-methods','plugins/custom-validation-methods','plugins/jquery.maskedinput-1.3','plugins/jquery.timeentry.min','plugins/jquery-ui-1.8.15.custom.min','plugins/jquery.cluetip','plugins/jquery.hoverIntent.min','plugins/jquery.form','plugins/jquery.blockUI'));
 //custom plugins
 echo $this->Html->script(array('mylibs/tws_console','mylibs/tws_form','mylibs/tws_overlay'));
 ?>
<?php echo $scripts_for_layout; ?>
  <script>
   $(function(){ $('#breadcrumbs').children('a').first().attr('href','/admin');});
  </script>
  <!-- Change UA-XXXXX-X to be your site's ID
  <script>
    window._gaq = [['_setAccount','UAXXXXXXXX1'],['_trackPageview'],['_trackPageLoadTime']];
    Modernizr.load({
      load: ('https:' == location.protocol ? '//ssl' : '//www') + '.google-analytics.com/ga.js'
    });
  </script>
 -->

  <!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
       chromium.org/developers/how-tos/chrome-frame-getting-started -->
  <!--[if lt IE 7 ]>
    <script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
    <script>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
  <![endif]-->

  
</body>
</html>
